home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-01-21 | 1.6 KB | 61 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="5"
- "COUNT"="1"
- "UIPATH 1"="Startup/Shutdown\Startup\Run on Next Boot"
- "NAME"="Run Defrag on Next Boot"
- "OSVERSION"="10101"
- "VERSION"="1.18"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Run Defrag on Next Boot"
- "DESCRIPTION 1"="Often the Defrag operation is continuously interrupted by other disk/program activity."
- "DESCRIPTION 2"="Checking the box will cause Defrag to start on Bootup; if Defrag is not desired on boot, it may be stopped after boot."
- "DESCRIPTION 3"="NOTE: This plugin is designed to run only on the next restart; whenever you want to run Defrag on boot, re-apply the plugin."
- "AUTHOR"="Ojatex@aol.com"
- "CONTACTURL"="http://members.aol.com/ojatex/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
- sp2="HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Defrag\Settings\"
- sP="HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce\"
- sV1="Defrag\"
- v="Title" 'Stg
- v1="Flags" 'Dwrd
- v2="Cmd" 'Stg
- v3="DisableScreenSaver"
- v4="@"
-
- Sub Plugin_Initialize
- End Sub
-
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
-
- if ElementIndex=1 then
- Call RegWriteValue(sP&v,"Defrag at Startup",1)
- Call RegWriteValue(sP&v1,"3",2)
-
- if GetWinVer=1 or GetWinVer=3 or GetWinVer=5 then
- Call RegWriteValue(sp&sv1&v2,"DEFRAG.EXE /ALL",1)
- else
- 'NT/W2K
- Call RegWriteValue(sp&sv1&v2,"dfrg.msc /ALL",1)
- end if
-
-
- Call RegWriteValue(sP2&v3,"Yes",1)
- Call RegWriteValue(sp2&v4,"Yes",1)
-
- Call Restart()
- end if
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-
-